<?php



class BannersHistoryMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.BannersHistoryMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('banners_history');
		$tMap->setPhpName('BannersHistory');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('BANNERS_HISTORY_ID', 'BannersHistoryId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('BANNERS_ID', 'BannersId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('BANNERS_SHOWN', 'BannersShown', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('BANNERS_CLICKED', 'BannersClicked', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('BANNERS_HISTORY_DATE', 'BannersHistoryDate', 'int', CreoleTypes::TIMESTAMP, true, null);

	} 
} 